getAppropriateRateFormat

Return a decimal number formatter that is appropriate for displaying the given amount. This will return a formatter with a smaller number of decimal places and less precision for very large values, and a formatter with higher precision (more decimal places) for very small numbers.

Return

a DecimalFormat that should be used to display the number in the UI

Parameters

amount

the value of the number to be formatted

decimalChar

either '.' or ',' depending upon the user's decimal point preference